
const log = console.log;
async function logger (ctx,next){
  const start = Date.now();
  next();
  const end = Date.now();
  ctx.cont = end-start;
  log(`${ctx.method}${ctx.path}${end-start}`);

};

module.exports = logger;

